layui.use(['laydate'], function(){
    var layDate = layui.laydate;

    layDate.render({
        elem:"#startDate",
        type:"date",
        trigger:"click"
    });
    layDate.render({
        elem:"#endDate",
        type:"date",
        trigger:"click"
    });
});